//
//  ViewController.m
//  RoyaDialViewExample
//
//  Created by zxc on 15/11/15.
//  Copyright © 2015年 zxc. All rights reserved.
//

#import "ViewController.h"
#import "RoyaDialView.h"

@interface ViewController () <RoyaDialViewDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    RoyaDialView *royaDialView = [[RoyaDialView alloc]init];
    royaDialView.delegate = self;
    [royaDialView showInView:self.view];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)onDialView:(RoyaDialView*) view makePhoneCall:(NSString *) phoneNum
{
    NSLog(@"%@",phoneNum);
}
-(void)onDialView:(RoyaDialView*) view dialNumber:(NSString *)phoneNum withKey:(NSInteger)key
{
    NSLog(@"%@ %ld",phoneNum,(long)key);
}
@end


